<?php slot('title',sprintf('CorpPon - Product - '.$product->getName().' - '.$product->Account->getCompanyName()))?>

<div id="product-wrapper">

<div id="product-seller">
		<div id="logo-product" class="corner"><span class="name-seller"><?php echo $product->Account->getCompanyName() ?></span></div>
        <div id="back-space-product"><img src="/images/back-logo-product.png" width="22" height="48" />
	</div>
    	<?php if ($sf_user->isAuthenticated() && $sf_user->hasCredential('Admin')) : ?>
    <a href="<?php echo url_for('products/edit?id_product='.$product->getIdProduct()) ?>">Edit</a>
  <?php endif; ?>
     <a href="<?php if ($sf_params->get('companyNameUrl')) : echo '/'.$sf_params->get('companyNameUrl').'/products'; else : echo url_for('products/index'); endif; ?>">Go back to List</a>
    </div>
<div id="wrapper-product-content" class="product">
	 <div id="gallery_main">
    	 <span class="center_vertical">
          <a href="/uploads/products/<?php echo $product->getPhoto1(); ?>">
            <img name="product_show_photo_1" id="product_show_photo_1" src="/uploads/products/preview/<?php echo $product->getPhoto1() ?>" />
         </a>
       </span>
    </div>
      <h1><?php echo $product->getName() ?></h1>
      
      <div id="condition-title" class="corner">Conditions:</div>
    <h2><?php echo $product->getSubtitle() ?></h2>
     <form method="post" action="<?php if ($sf_params->get('companyNameUrl')) : echo url_for('products/addToCart?company='.$sf_params->get('companyNameUrl')); else : echo url_for('products/shoppingCart'); endif; ?>" id="add_to_cart">
      <span class="button-add-to-cart">
      <span class="quantity">Quantity:<br /><input type="text" name="product_quantity" id="product_quantity" size="1" value="<?php echo $product->getIncrement() ?>" /></span>
      
      <span class="button-addcart">
       <input type="hidden" name="id_product" id="id_product" value="<?php echo $product->getIdProduct() ?>" />
          <input type="hidden" name="product_name" id="product_name" value="<?php echo $product->getName() ?>" />
          <input type="hidden" name="product_description" id="product_description" value="<?php echo $product->getDescription() ?>" />
          <input type="hidden" name="product_price" id="product_price" value="<?php echo $product->getDiscountedPrice() ?>" />
      <input name="Submit" type="image" src="/images/button-add-tocart.jpg" style=" cursor:pointer;" value="Add to Cart" /></span>
      
      </span></form>
      <div id="price-box-detail">
            	<span class="symbol">$</span> <span class="price"><?php echo $product->getDiscountedPrice() ?></span><br />

                
                <div id="offer">
                	<?php echo number_format($product->getDiscount(),0) ?>% Off
                </div>
                
            </div>
            
      
</div> 
<div id="wrapper-content-description" class="corner">
 <div id="condition-title" class="corner">Description:</div>
<p><?php echo $product->getDescription() ?></p>
</div>
</div>

<?php include_partial('content/right-column', array('products' => $products)) ?>
   <script type="text/javascript">
	$(function() {
		$('#gallery_main a').lightBox({fixedNavigation:true});
	});
    </script>


<form method="post" action="<?php echo url_for('products/addToCart') ?>" id="add_to_cart">
  <input type="hidden" name="id_product" id="id_product" value="<?php echo $product->getIdProduct() ?>" />
  <input type="hidden" name="product_name" id="product_name" value="<?php echo $product->getName() ?>" />
  <input type="hidden" name="product_description" id="product_description" value="<?php echo $product->getDescription() ?>" />
  <input type="hidden" name="product_price" id="product_price" value="<?php echo $product->getDiscountedPrice() ?>" />
  <!--<input type="hidden" name="shipping_price" id="shipping_price" value="<?php //echo $product->getShippingPrice() ?>" />-->
 
</form>

